home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
dax1.exe
/
CP
/
CPAPI.H
< prev
next >
Wrap
Text File
|
1992-07-15
|
3KB
|
78 lines
// ╔════════════════════════════════════════════════════════════════════╗
// ║ ║
// ║ module: cpapi.h ║
// ║ ║
// ║ This software is provided as is and carries no warranty ║
// ║ whatsoever. Novell disclaims and excludes any and all implied ║
// ║ warranties of merchantability, title and fitness for a particular ║
// ║ purpose. Novell does not warrant that the software will satisfy ║
// ║ your requirements or that the software is without defect or error ║
// ║ or that operation of the software will be uninterrupted. You are ║
// ║ using the software at your risk. The software is not a product ║
// ║ of Novell, Inc. or any of subsidiaries. ║
// ║ ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ maintenance history: ║
// ║ level date pi description ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ 001 02/27/92 kl initial release. ║
// ║ 002 07/14/92 kl windows port. ║
// ╚════════════════════════════════════════════════════════════════════╝
/*
** This header file contains the APIs callable by the DAP layer.
** The CPSYS.H header file contains all API prototypes, except for
** those defined here. However, CPSYS.H #includes this header file,
** so you don't need to maintain 2 definitions.
*/
#if !defined(CPAPI)
#define CPAPI
#include "h/extypes.h"
#if !defined(CPINCLSTRUC)
typedef void CPDATA; // user of this header doesn't need declarations
#endif // !defined(CPINCLSTRUC)
extern char *CPTranslateReturnCode(T_RC rc);
#if defined(ENGINE)
/*
** -------------------
** ENGINE Declarations
** -------------------
*/
#include <nwtypes.h>
extern T_RC CPInitialize(char *srvname,
WORD type,
void (*EnqueueAPI)(UINT32, void *),
int (*ioRoutine)(char *fmt, ...));
extern void CPDeInitialize(void);
extern T_RC CPClearSessionID(UINT32 sessionID);
extern T_RC CPSendMessage(UINT32 sessionID, void *data, unsigned length);
#else
/*
** -------------------
** CLIENT Declarations
** -------------------
*/
extern CPDATA *CPInitialize(char *srvname, UINT16 type);
extern void CPDeInitialize(CPDATA *CPid);
extern T_RC CPConnectToServer(CPDATA *CPid);
extern T_RC CPDisConnectFromServer(CPDATA *CPid);
extern T_RC CPRecvMessage(CPDATA *CPid, void *recbuf, unsigned length);
extern T_RC CPSendMessage(CPDATA *CPid, void *data, unsigned length);
extern void CPRepostAnyCompletedECBs(CPDATA *CPid);
extern void CPDisplaySessionData(void *f, CPDATA *CPid);
#endif // !defined(ENGINE)
#endif